package com.sky.service;

import com.sky.dto.ShoppingCartDTO;
import com.sky.entity.ShoppingCart;

import java.util.List;

/**
 * @author 缘友一世
 * date 2023/7/24-15:53
 */
public interface ShoppingCartService {
    /**
     * 添加购物车
     * @param shoppingCartDTO
     */
    void addShoppingCart(ShoppingCartDTO shoppingCartDTO);

    /**
     * 查看购物车
     * @return
     */
    List<ShoppingCart> showShoppingCart();

    /**
     * 清空购物车商品
     */
    void cleanShoppingCart();

    int getNums(ShoppingCartDTO shoppingCartDTO);

    void subNums(ShoppingCartDTO shoppingCartDTO);

    void delete(ShoppingCartDTO shoppingCartDTO);
}
